<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>产品展示效果</title>
    <link rel="stylesheet" href="./font_3736491_rp4tbmjtbc/iconfont.css">
    <style>
        .box {
            position: relative;
            width: 350px;
            height: 247px;
            overflow: hidden;
        }

        .box img {
            width: 350px;
            transition: transform .5s;
        }

        .box:hover img {
            transform: scale(1.5);

        }

        .box .title {
            position: absolute;
            left: 15px;
            bottom: 20px;
            /* 定位大一点 */
            z-index: 2;
            width: 260px;
            color: #fff;
            font-size: 20px;
            font-weight: 700;
            transform: translateY(40%);
            transition: all .5s;
        }

        .title p {
            font-weight: 400;
        }

        .box:hover .title {
            transform: translateY(10%);
        }

        .mask {
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0;
            width: 350px;
            height: 247px;
            background-image: linear-gradient(transparent,
                    rgba(0, 0, 0, .8));
            transition: all .3s;
        }

        .icon-chevron-right {
            color: red;
        }

        .box:hover .mask {
            opacity: 1;
        }
    </style>
</head>

<body>
    <!-- 盒子缩放比图片缩放比较好 -->
    <div class="box">
        <img src="./images/product.jpeg" alt="">

        <div class="title">
            <p>产品</p>
            OceanStor Pacific 海量存储斩获2021 Interop金奖
            <!-- 这有个字体图标 -->
            <p>了解更多 <i class="iconfont icon-chevron-right"></i></p>
        </div>

        <!-- 渐变背景 mask -->
        <div class="mask"> </div>

    </div>
</body>

</html>